package gwtmodule1.client.gui.admin;

import gwtmodule1.client.gui.shared.AccountForm;
import gwtmodule1.client.gui.utils.FrameClient;
import gwtmodule1.client.gui.utils.Title;

import com.google.gwt.user.client.ui.VerticalPanel;

public class PageEditAccount extends VerticalPanel implements FrameClient {

	private Title title = new Title("Create/Edit Account");

	private int userID = 0;

	public void onShow(Object param) {
		userID = ((Integer) param).intValue();
		title.setTitle((userID == 0) ? "Create Account" : "Edit Account");
	}

	public PageEditAccount() {
		super();
		add(title);
		add(new AccountForm(userID, true));
	}

}
